home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>9</cardCount>
- <cardID>159264</cardID>
- <listID>4383</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>-- The acutal fortunes begin at the card after the card labelled
- -- "Control Card" and this function picks a random card from that
- -- portion of the stack. NOTE: this function is also used by the
- -- background script
- function randomCardNumber
- put the number of card "Control Card" into frontCards
- return random(the number of cards - frontCards) + frontCards
- end randomCardNumber
-
- on openStack
- show field "Your fortune" of card 1
- hide menubar
- end openStack
-
- on closeStack
- show menubar
- hide field "Your fortune" of card 1
- if the number of cards > the number of card "Control Card"
- then put field "Your fortune" of card randomCardNumber()¬
- into field "Your fortune" of card 1
- end closeStack
- </script>
- <background id="2079" file="background_2079.xml" name="Title" />
- <background id="2694" file="background_2694.xml" name="Fortune" />
- <background id="69087" file="background_69087.xml" name="" />
- <card id="159264" file="card_159264.xml" marked="false" name="Sample Card" owner="2694" />
- <card id="112488" file="card_112488.xml" marked="false" name="Flip book 1" owner="69087" />
- <card id="3597" file="card_3597.xml" marked="false" name="" owner="69087" />
- <card id="3856" file="card_3856.xml" marked="false" name="" owner="69087" />
- <card id="47198" file="card_47198.xml" marked="false" name="" owner="69087" />
- <card id="134359" file="card_134359.xml" marked="false" name="" owner="69087" />
- <card id="207242" file="card_207242.xml" marked="false" name="" owner="69087" />
- <card id="221303" file="card_221303.xml" marked="false" name="" owner="69087" />
- <card id="152765" file="card_152765.xml" marked="false" name="Control Card" owner="2079" />
- </stack>
-